package com.service.serviceclass;

import com.dao.MovieDao;
import com.entity.movie;
import com.service.movieService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class movieServiceImp implements movieService {
    @Autowired
    private MovieDao movieDao;
    @Override
    public List<movie> getMovieList() {
        List<movie> list = movieDao.getMovieList();
        return list;
    }

    @Override
    public movie getMovieById(String id) {
        movie movie = movieDao.getMovieById(id);
        return movie;
    }
}
